package com.eastcom.collection.distributor

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType
import javax.xml.bind.annotation.XmlAttribute
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement
//<?xml version="1.0" encoding="gb2312"?>
//<redirector>
//  <mqs>
//	<mq name="alarm_mq" dogrobberxml="d:/eclipse/workspace/stope/tasks/dogrobber.xml" cmdsetxml="d:/eclipse/workspace/stope/config/cmdset.xml" channel="alarmcollector" dest="alarmcollector_211.139.136.111" source="distributor_211.139.136.109" />
//	<mq name="kpi_mq" dogrobberxml="d:/eclipse/workspace/stope/tasks/dogrobber.xml" cmdsetxml="d:/eclipse/workspace/stope/config/cmdset.xml" channel="kpicollector" dest="kpicollector_211.139.136.111" source="distributor_211.139.136.109" />
//  </mqs>
//  <collectors>
//	<collector name="stope1" driver="com.sybase.jdbc2.jdbc.SybDriver" url="jdbc:sybase:Tds:211.138.183.131:4100/ipnet?charset=eucgb" user="rm" password="rm1234" type="sybase" sid="ipnet" ip="211.138.183.131" port="4100" />
//	<collector name="test73" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.1.73:1521:shzt" user="rm" password="rm1234" />
//	<collector name="db100" drv="com.sybase.jdbc2.jdbc.SybDriver" url="jdbc:sybase:Tds:192.168.1.100:4100/ipnet" user="nabiist" password="nabiist1234" type="SYBASE" sid="ipnet" ip="192.168.1.100" port="4100" />
//  </collectors>
//  <routes>
//	<route name="stope2" prop="value" />
//  </routes>
//   <loaders>
//	<loader name="oracleLoader" type="oracle" user="rm" password="rm1234" serviceID="GS_SHZT73" maxConNum="5" ctrFileDir="E:\eclipse-SDK-3.6.1-win32\eclipse\workspace\stope\source\data\loader"/>
//  </loaders>
//</redirector>
@XmlRootElement(name="redirector")
@XmlAccessorType(XmlAccessType.NONE)
class Redirector {
	@XmlElement(name = "collectors")
	Collectors collectors
}
@XmlAccessorType(XmlAccessType.NONE)
class Collectors{
	@XmlElement(name = "collector")
	List<Collector> collectorList
}

@XmlAccessorType(XmlAccessType.NONE)
public class Collector{
	@XmlAttribute(name = "name")
	String name
	@XmlAttribute(name = "driver")
	String driver
	@XmlAttribute(name = "url")
	String url
	@XmlAttribute(name = "user")
	String user
	@XmlAttribute(name = "password")
	String password
}



